#ifndef _6502_DBTSUPPORT_H
#define	_6502_DBTSUPPORT_H

#define _JUMP_PC(__INITIAL__OFFSET__) \
if(RemainingCycles <= 0) \
	return RemainingCycles; \
Offset = CPU.PC - __INITIAL__OFFSET__; \
goto *JumpTable[Offset];

#define _JUMP_PC_T(__INITIAL__OFFSET__, __TARGET__ADDR__) \
if(RemainingCycles <= 0) \
    return RemainingCycles; \
if(CPU.PC == __TARGET__ADDR__){ \
    Offset = CPU.PC - __INITIAL__OFFSET__; \
    goto *JumpTable[Offset]; \
}

#endif	/* 6502_DBTSUPPORT_H */

